<ion-modal-view>
  <ion-header-bar class="bar-stable">
    <h1 class="title">添加从业人员</h1>
    <div class="buttons">
      <button class="button button-assertive" ng-click="modal.hide()">
        取消
      </button>
    </div>
  </ion-header-bar>
  <ion-content class="padding">
    <form class="list" ng-submit="submit()" novalidate>
      <ion-list>
        <label class="item item-input" name="hotelWorkerName">
          <span class="input-label">姓名</span>
          <input type="text" placeholder="必填"  ng-model="data.name" required bsy-form-validate="nameErrorTips">
        </label>
        <label class="item item-input" name="hotelWorkerUsedName">
          <span class="input-label">曾用名</span>
          <input type="text" placeholder=""  ng-model="data.usedName">
        </label>
        <label class="item item-select" name="hotelWorkerSex">
          <span class="input-label">性别</span >
          <select ng-model="data.sex">
            <option value="1">男</option>
            <option value="2">女</option>
          </select>
        </label>
        <label class="item item-input" name="hotelWorkerID">
          <span class="input-label">身份证号码</span>
          <input type="text" placeholder="必填"  ng-model="data.idCardNo"  required bsy-form-validate="idCardNoErrorTips"
                 ng-maxlength="18"
                 ng-minlength="18">
        </label>
        <label class="item item-input" name="hotelWorkerPhone">
          <span class="input-label">联系电话</span>
          <input type="tel" placeholder="" ng-model="data.telephoneNum">
        </label>
        <label class="item item-input" name="hotelWorkerAddress">
          <span class="input-label">现住址</span>
          <input type="text" placeholder="必填" required ng-model="data.address"
                 bsy-form-validate="addressErrorTips"
                 ng-minlength="3"
                 maxlength="200"
          >
        </label>
      </ion-list>
      <button class="button button-positive button-block" check-form>提交</button>
    </form>
  </ion-content>
</ion-modal-view>
